
/* Generated by Interface Builder */

#import "CmdFgcolor.h"
#import "miscutil.h"

@implementation CmdFgcolor
- initCmd:(int)r :(int)g :(int)b
{
  [super init];
  color=NXConvertRGBToColor(bytetofloat(r), bytetofloat(g), bytetofloat(b));
  number1=r;
  number2=g;
  number3=b;
  command="fgcolor";
  return self;
}

- initCmdColor:(NXColor)aColor
{
  [super init];
  color=aColor;
  number1=floattobyte(NXRedComponent(aColor));
  number2=floattobyte(NXGreenComponent(aColor));
  number3=floattobyte(NXBlueComponent(aColor));
  command="fgcolor";
  return self;
}

- doCmd
{
  [theBitmap setColor:color];
  return self;
}


@end
